package com.soryin.entity;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.Table;

/**
 * 描述Block
 * @author Hello_海生
 * @date 2014年3月6日
 */

@Entity
@Table(name="Soryin_B_Description")
public class DescriptionBlock {
	private int id;
	private Soryin SoryinId;
	private String title;		//描述的标题
	private String content;		//描述内容
	
	@Id
	@GeneratedValue
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	
	@OneToOne(cascade=CascadeType.ALL,fetch=FetchType.LAZY)
	public Soryin getSoryinId() {
		return SoryinId;
	}
	public void setSoryinId(Soryin soryinId) {
		SoryinId = soryinId;
	}
	
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	
	
}
